#/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('../../../icafe')


class LC():
    
    def __init__(self,UId, edge=None, loads={0:None,1:None,2:None,3:None,4:None,5:None}):
        
        self.UId = UId
        self.edge = edge
        self.loads = loads
    
    def __repr__(self):
        
        return "LC "+ str(self.UId)+ " at edge "+ str(self.edge.UId)
        
           
class AnalyticLC(LC):
    
    def __init__(self,edge=None,analytic_expressions=None):
        
        LC.__init__(self,edge)


class LoadCombination(LC):
    
    def __init__(self,UId, loadIds=[], amplitudes=[], factor=1):
        
        super().__init__(UId)
        
        self.loadIds = loadIds
        self.amplitudes = amplitudes
        
        # overall scale factor:
        self.factor = factor